Skip to content

enhance entering, exiting, and copying in copy mode#79

Closed
BrettKulp wants to merge 3 commits intoleohenon:ocvfrom
BrettKulp:feature/enhance_copy_mode
Closed

enhance entering, exiting, and copying in copy mode#79
BrettKulp wants to merge 3 commits intoleohenon:ocvfrom
BrettKulp:feature/enhance_copy_mode

Conversation

@BrettKulp
Copy link
Copy Markdown

This is where I ended up with #50

add ctrl + w j/k for entering and exiting copy mode without scrolling the chat history. The cursor will enter into a row that is already visible in the chat history if the chat is scrolled up to previous older messages. Leader + v, esc, and q still scroll chat history while entering and exiting as before.

add yy for yanking a whole line in copy mode while not in VL mode

add i going directly into insert mode in the input prompt without scrolling the chat history

make it so y in copy mode stays in copy mode rather than scrolls the chat history to the bottom

Entering and exiting copy mode via ctr + w + j/k if will enter into a visible section of chat history

I like these changes because they feel more like vim to me but if you don't want to force them onto users I understand

@leohenon
Copy link
Copy Markdown
Owner

Thanks! Would you mind splitting copy mode yy into its own PR?

@BrettKulp
Copy link
Copy Markdown
Author

I sent the yy pr #82 did you want me to make a new pr with these changes that does not include yy?

@leohenon
Copy link
Copy Markdown
Owner

Yes please, remove the yy changes from this branch. The two yy implementations are different, and the one in
#82 is cleaner because it doesn’t reuse visual line mode for the flash.

@BrettKulp BrettKulp force-pushed the feature/enhance_copy_mode branch from e126afd to b6380b9 Compare April 29, 2026 03:16
@BrettKulp BrettKulp force-pushed the feature/enhance_copy_mode branch from ace54bb to 2d9b0b2 Compare April 29, 2026 12:06
@leohenon
Copy link
Copy Markdown
Owner

leohenon commented May 1, 2026

Thanks. Can you explain why both skipExitOnModeChange and exitScrollToBottom are needed? I want to make sure I understand the exit flow, what path would break if we removed one of them?

@BrettKulp
Copy link
Copy Markdown
Author

exitScrollToBottom was redundant. I removed it but I just noticed some flashing on long chats that is happening

@BrettKulp
Copy link
Copy Markdown
Author

I will reopen this when I fix the flashing. It is turning out to be harder to fix than I expected

@BrettKulp BrettKulp closed this May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants